INCLUDE_DIRECTORIES(${K3D_OPENCASCADE_INCLUDE_DIR})
LINK_DIRECTORIES(${K3D_OPENCASCADE_LIB_DIR})

IF(K3D_PLATFORM_SIZE_TYPE EQUAL 64)
    SET_SOURCE_FILES_PROPERTIES(opencascade_to_k3d.cpp
        PROPERTIES
        COMPILE_FLAGS "-m64 -D_OCC64 -DLIN -DLININTEL -DHAVE_CONFIG_H -DHAVE_IOSTREAM -DHAVE_FSTREAM -DHAVE_LIMITS_H")
ELSE(K3D_PLATFORM_SIZE_TYPE EQUAL 64)
    SET_SOURCE_FILES_PROPERTIES(opencascade_to_k3d.cpp
        PROPERTIES
        COMPILE_FLAGS "-DLIN -DLININTEL -DHAVE_CONFIG_H -DHAVE_IOSTREAM -DHAVE_FSTREAM -DHAVE_LIMITS_H")
ENDIF(K3D_PLATFORM_SIZE_TYPE EQUAL 64)

K3D_BUILD_MODULE(k3d-opencascade)
K3D_CREATE_MODULE_PROXY(k3d-opencascade)

TARGET_LINK_LIBRARIES(k3d-opencascade BinLPlugin BinPlugin BinXCAFPlugin FWOSPlugin mscmd PTKernel StdLPlugin StdPlugin TKAdvTools TKBin TKBinL TKBinXCAF TKBO TKBool TKBRep TKCAF TKCDF TKCDLFront TKCPPClient TKCPPExt TKCPPIntExt TKCPPJini TKCSFDBSchema TKDCAF TKDraw TKFeat TKFillet TKG2d TKG3d TKGeomAlgo TKGeomBase TKHLR TKIDLFront TKIGES TKLCAF TKMath TKMesh TKMeshVS TKOffset TKOpenGl TKPCAF TKPLCAF TKPrim TKPShape TKService TKShapeSchema TKShHealing TKStdLSchema TKStdSchema TKSTEP TKSTEP209 TKSTEPAttr TKSTEPBase TKSTL TKTCPPExt TKTopAlgo TKTopTest TKV2d TKV3d TKViewerTest TKVRML TKXCAF TKXCAFSchema TKXDEDRAW TKXDEIGES TKXDESTEP TKXml TKXmlL TKXmlXCAF TKXSBase TKXSDRAW XCAFPlugin XmlLPlugin XmlPlugin XmlXCAFPlugin TKernel)
